!function () {
    var i, n;

    function o(i) {
        if (i) {
            for (var n in i) i.hasOwnProperty(n) && -1 < i[n].indexOf(",") && (i[n] = i[n].split(","));
            return i
        }
    }

    !window.RoleNameConf && window.CBG_GAME_CONFIG && (i = window.CBG_GAME_CONFIG, n = new Class({
        initialize: function () {
            this.skill = {
                life_skill: i.life_skill,
                school_skill: i.school_skill,
                ju_qing_skill: i.ju_qing_skill
            }, this.rider_info = i.rider_info, this.equip_info = i.equip_info, this.pet_info = i.pet_info, this.fabao_info = i.fabao_info, this.lingbao_info = i.lingbao_info, this.pet_shipin_info = i.pet_shipin_info, this.shenqi_info = i.shenqi_info, this.wuxing_affix_info = i.wuxing_affix_info, this.girl_child_info = i.girl_child_info, this.boy_child_info = i.boy_child_info, this.child_info = Object.merge(Object.clone(this.girl_child_info), Object.clone(this.boy_child_info)), this.fangwu_info = i.fangwu_info, this.tingyuan_info = i.tingyuan_info, this.muchang_info = i.muchang_info, this.ending_info = o(i.ending_info), this.clothes_info = i.clothes_info, this.xiangrui_info = i.xiangrui_info, this.xiangrui_skill = i.xiangrui_skill, this.clothes_type_conf = i.clothes_type_conf, this.nosale_xiangrui = i.nosale_xiangrui, this.nosale_to_sale_xiangrui = {
                113: "流云玉佩",
                219: "烈焰斗猪"
            }
        }, get_fabao_info: function (i) {
            var n = this.fabao_info[parseInt(i)], i = {name: "", desc: ""};
            return n && (i.name = n.name, i.desc = n.desc), i
        }, get_lingbao_info: function (i) {
            var n = this.lingbao_info[parseInt(i)], i = {name: "", desc: ""};
            return n && (i.name = n.name, i.desc = n.desc), i
        }, get_shenqi_info: function (i) {
            var n = this.shenqi_info[parseInt(i)], i = {name: "", desc: ""};
            return n && (i.name = n.name, i.desc = n.desc), i
        }, get_equip_info: function (i) {
            var n = this.equip_info[parseInt(i)], i = {name: "", desc: ""};
            return n && (i.name = n.name, i.desc = n.desc), i
        }
    }), window.RoleNameConf = n, window.RoleNameInfo = new n)
}();